//
//  NetWorthCell.m
//  FinancialProduct
//
//  Created by Stella on 2017/8/29.
//  Copyright © 2017年 maq. All rights reserved.
//

#import "DBHelper.h"
#import "NetWorthCell.h"

@implementation NetWorthCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setRoseMode:(RoseModel *)roseMode{
    
    NSDate *dateTime =  [DBHelper dateFromCustomString:roseMode.DocDate format:@"yyyy/MM/dd HH:mm:ss"];
    NSString *time = [DBHelper stringFromCustomFormatDate:dateTime format:@"yyyy-MM-dd"];
    self.timeLa.text=time;
    self.Label2.text=roseMode.Net;
    if (roseMode.MonthSumRose.length > 0) {
        self.Label3.text=[NSString stringWithFormat:@"%@%%",roseMode.MonthSumRose];
    }
    else {
        self.Label3.text=@"";
    }
    
    self.Label4.text=[NSString stringWithFormat:@"%@%%",roseMode.SumRose];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
